Working with Apache Forrest Table Of Contents ================= [Link: ]Working with Apache ForrestLance Hendrix +---------------------------------+---------------------------------+ | Revision History | | +---------------------------------+---------------------------------+ | | 13 April, 2013 | +---------------------------------+---------------------------------+ | Creation Date | | +---------------------------------+---------------------------------+ Abstract This article describes the work I have done with Apache Forrest in order to develop my personal publishing pipeline that is heavily based on DocBook as the content format with Apache Forrest as the publishing pipeline for publishing my website (primary goal) and rendering DocBook into other formats. Table of Contents :: 1. Purpose of this Document [Link: #N10028] :: 2. Acknowledgements [Link: #N1002D] :: 3. Valuable Links [Link: #N10032] :: 4. Working with Apache Forrest [Link: #N1003E] :: 4.1. Integrating Google Analytics [Link: #N10043] :: 4.2. Customizing for DocBook [Link: #N10051] :: 4.3. Other Customizations [Link: #N1005B] [Link: ]1. Purpose of this Document The purpose of this document is to record some of my thoughts on using Apache Forrest as well as to document the configurations, customizations, and work I have done to my publishing pipeline. It is also hopeful that others may find this information of value. [Link: ]2. Acknowledgements Acknowledge those that came before and on which the following is based. We always stand on the shoulders of giants. [Link: ]3. Valuable Links This section provides what I consider to be valuable links so that I can (or you can) quickly access key information relating to this article or technologies. Many of these links are used throughout the article, but I have tried to aggregate the most significant ones here for easy reference without having to scan through the document. * forrest.apache.org [Link: http://forrest.apache.org/] - Apache Forrest project home page [Link: ]4. Working with Apache Forrest This section describe various ways I have configured Apache Forrest for my specific needs. [Link: ]4.1. Integrating Google Analytics How did I get Google Analytics to work by customizing the template (pelt). You will need to go to the google analytics site [Link: https://www.google.com/analytics/] and create an account (if you don't already have one) and then register your site to the account. Once you have done this, you can go to the registered site and under the admin section (of the site/profile), you can generate the script piece that you can then insert into the XSL for forrest to generate into each page. Once you have your script (best not to use the one below because it is specific to my site), I inserted this script just before the closing head tag ("") in the "site-to-xhtml.xsl" file in the /src/documentation/skins/pelt/xslt/html/site-to-xhmtl.xsl". [Link: ]4.2. Customizing for DocBook Describe customizations to the processing pipeline (cocoon?) to get it to generate HTML from DocBook (maybe not the best way because we lose metadata, but it works for now) and then use Forrest to integration the generated HTML into the site (basically taking the body of the generated HTML and generating it into the template, which is why we lose information in the head of the generated HTML). In the /src/documentation/sitemap.xmap I have the following to enable the processing of the DocBook documents into Forrest. [Link: ]4.3. Other Customizations I am fairly certain I have done other customizations like to headers and such... Need to start from scratch (fresh forrest "seed') and compare to where I am now.